package com.zzw.basic.io;

import java.util.Scanner;

public class ScannerTest {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            String res = scanner.nextLine();
            System.out.println(res);
            if (res.trim().equals("exit")) {
                System.out.println("equals");
                break;
            }
        }
    }
}
